Skip to content

Conversation

@mre
Copy link
Member

@mre mre commented Aug 24, 2025

Docker builds use the clean dependency tree with @tanstack/react-query instead of the deprecated react-query package.

mre added 7 commits August 24, 2025 01:56
- Add --legacy-peer-deps flag to GitHub workflow npm ci commands to resolve React 19 peer dependency conflicts
- Update react-image-gallery to 1.4.0 for React 19 compatibility
- Fix AutocompleteSearch Configure component to remove TypeScript any usage
- Remove deprecated yarn.lock file in favor of package-lock.json

This resolves the ERESOLVE peer dependency errors preventing successful CI/CD builds.
- Replace [email protected] with @tanstack/[email protected]
- Update all query hooks to use new TanStack Query v5 API (queryKey/queryFn object format)
- Replace Hydrate with HydrationBoundary component
- Add initialPageParam to useInfiniteQuery for v5 compatibility
- Document that --legacy-peer-deps is only needed for react-select-search

This is the idiomatic solution for React 19 compatibility, replacing the deprecated react-query package with the modern, actively maintained TanStack Query.
…tibility

- Remove [email protected] (React 18 only) and install [email protected]
- Upgrade [email protected] → 5.2.2 for React 19 support
- Update MobileFilter component to use react-select API with proper TypeScript types
- Remove --legacy-peer-deps flag from GitHub workflow - no longer needed
- Add dark theme styling for react-select to match existing UI

This completes the idiomatic React 19 upgrade by replacing all incompatible packages with modern alternatives.
This ensures Docker builds use the clean dependency tree with @tanstack/react-query instead of the deprecated react-query package.
@mre mre merged commit 9798be6 into main Aug 24, 2025
2 checks passed
@mre mre deleted the nextjs-15-upgrade branch August 24, 2025 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants